import BaseMediator from "../../libs/lightMVC/core/base/BaseMediator";
import PostmodernismView from "./PostmodernismView";
import PlayerModel, { AreaInfo, ShowroomType, ShowroomInfo, Player } from "../model/PlayerModel";
import HttpUtils from "../../libs/lightMVC/util/HttpUtils";
import API from "../API";
import WeChatUtils from "../standar/utils/WeChatUtils";
import Notification from "../Notification";
import { Facade } from "../../libs/lightMVC/core/Facade";
import BaseCommand from "../../libs/lightMVC/core/base/BaseCommand";
import CatalogueView from "../catalogue/ CatalogueView";
import CatalogueMediator from "../catalogue/ CatalogueMediator";



export default class PostmodernismMediator extends BaseMediator  {

    public view: PostmodernismView; 

   



    public static readonly CHECKGALLERY = "CHECKGALLERY";
    

    public init(data?: any): void {

        const self = this;

      
         //进入下一个界面
         this.bindEvent(PostmodernismView.Enter,(str: AreaInfo )=>{

            
          console.log("打開界面");
            //打开第一个界面  
            Facade.getInstance().openView(CatalogueMediator,CatalogueView , str);
    
            
             
            },this);
        

       
        
        

    }

    public viewDidAppear(): void {

        //this.view.init();
    }

  

    

   

    public destroy(): void {

    }
}